home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex / base / letter.dtx (.txt) < prev    next >
LaTeX Document  |  1994-12-17  |  61KB  |  1,621 lines

  1. % \iffalse meta-comment
  2. % Copyright 1994 the LaTeX3 project and the individual authors.
  3. % All rights reserved. For further copyright information see the file
  4. % legal.txt, and any other copyright indicated in this file.
  5. % This file is part of the LaTeX2e system.
  6. % ----------------------------------------
  7. %  This system is distributed in the hope that it will be useful,
  8. %  but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. %  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. % IMPORTANT NOTICE:
  11. % For error reports in case of UNCHANGED versions see bugs.txt.
  12. % Please do not request updates from us directly.  Distribution is
  13. % done through Mail-Servers and TeX organizations.
  14. % You are not allowed to change this file.
  15. % You are allowed to distribute this file under the condition that
  16. % it is distributed together with all files mentioned in manifest.txt.
  17. % If you receive only some of these files from someone, complain!
  18. % You are NOT ALLOWED to distribute this file alone.  You are NOT
  19. % ALLOWED to take money for the distribution or use of either this
  20. % file or a changed version, except for a nominal charge for copying
  21. % etc.
  22. % \fi
  23. % \CheckSum{980}
  24. %% \CharacterTable
  25. %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
  26. %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
  27. %%   Digits        \0\1\2\3\4\5\6\7\8\9
  28. %%   Exclamation   \!     Double quote  \"     Hash (number) \#
  29. %%   Dollar        \$     Percent       \%     Ampersand     \&
  30. %%   Acute accent  \'     Left paren    \(     Right paren   \)
  31. %%   Asterisk      \*     Plus          \+     Comma         \,
  32. %%   Minus         \-     Point         \.     Solidus       \/
  33. %%   Colon         \:     Semicolon     \;     Less than     \<
  34. %%   Equals        \=     Greater than  \>     Question mark \?
  35. %%   Commercial at \@     Left bracket  \[     Backslash     \\
  36. %%   Right bracket \]     Circumflex    \^     Underscore    \_
  37. %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
  38. %%   Right brace   \}     Tilde         \~}
  39. % \iffalse
  40. % \section{Identification}
  41. %    This document class can only be used with \LaTeXe, so we make
  42. %    sure that an appropriate message is displayed when another \TeX{}
  43. %    format is used.
  44. %    \begin{macrocode}
  45. %<+letter>\NeedsTeXFormat{LaTeX2e}[1994/12/01]
  46. %    \end{macrocode}
  47. %    Announce the Class name and its version.
  48. %    \begin{macrocode}
  49. %<+letter>\ProvidesClass{letter}
  50. %<*driver>
  51.        \ProvidesFile{letter.drv}
  52. %</driver>
  53.               [1994/12/11 v1.2p
  54. %<+letter>               Standard LaTeX document class]
  55. %    \end{macrocode}
  56. % \section{The documentation driver file}
  57. %    We have our own document class to format the \LaTeXe
  58. %    documentation.
  59. % \fi
  60. % \changes{v1.0.6}{1993/12/07}{Use class ltxdoc document class}
  61. % \iffalse
  62. %    \begin{macrocode}
  63. %<*driver>
  64. \documentclass{ltxdoc}
  65. %    \end{macrocode}
  66. %    We don't want everything to appear in the index.
  67. %    \begin{macrocode}
  68. \DoNotIndex{\@M,\@badmath}
  69. \DoNotIndex{\@centercr}
  70. \DoNotIndex{\@empty,\@ignoretrue}
  71. \DoNotIndex{\@ixpt}
  72. \DoNotIndex{\@minus,\@ne,\@plus}
  73. \DoNotIndex{\\,\addtolength}
  74. \DoNotIndex{\advance,\Alph,\alph}
  75. \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box}
  76. \DoNotIndex{\bullet}
  77. \DoNotIndex{\cdot,\cr,\day,\DeclareOption}
  78. \DoNotIndex{\def,\DocInput,\documentclass}
  79. \DoNotIndex{\DoNotIndex,\egroup,\ifx,\else,\fi,\endtrivlist}
  80. \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}
  81. \DoNotIndex{\endlist,\everycr,\ExecuteOptions}
  82. \DoNotIndex{\filedate,\filename,\fileversion}
  83. \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}
  84. \DoNotIndex{\hsize,\hskip,\hspace,\hss,\ifcase,\or,\fi}
  85. \DoNotIndex{\ifvmode,\fi,\ifnum,\fi,\input}
  86. \DoNotIndex{\kern,\leavevmode,\let,\leftmark}
  87. \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark}
  88. \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}
  89. \DoNotIndex{\NeedsTeXFormat,\newdimen}
  90. \DoNotIndex{\newpage,\nobreak,\noindent,\number}
  91. \DoNotIndex{\p@}
  92. \DoNotIndex{\pagestyle,\par}
  93. \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}
  94. \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright}
  95. \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font}
  96. \DoNotIndex{\rightmargin,\rlap,\rmfamily,\roman}
  97. \DoNotIndex{\roman,\setbox,\setcounter,\setlength}
  98. \DoNotIndex{\skip,\slshape,\space}
  99. \DoNotIndex{\trivlist,\typeout,\tw@}
  100. \DoNotIndex{\vskip,\vspace,\year,\z@}
  101. \CodelineNumbered
  102. \CodelineIndex
  103. \EnableCrossrefs
  104. \RecordChanges
  105. %    \end{macrocode}
  106. %    We use so many \file{docstrip} modules that we set the
  107. %    \texttt{StandardModuleDepth} counter to 1.
  108. %    \begin{macrocode}
  109. \setcounter{StandardModuleDepth}{1}
  110. %    \end{macrocode}
  111. %    The following command retrieves the date and version information
  112. %    from the file.
  113. %    \begin{macrocode}
  114. \GetFileInfo{letter.drv}
  115. %    \end{macrocode}
  116. %    Some commonly used abbreviations
  117. %    \begin{macrocode}
  118. \newcommand*{\Lopt}[1]{\textsf {#1}}
  119. \newcommand*{\file}[1]{\texttt {#1}}
  120. \newcommand*{\Lcount}[1]{\textsl {\small#1}}
  121. \newcommand*{\pstyle}[1]{\textsl {#1}}
  122. %    \end{macrocode}
  123. %    We also want the full details.
  124. %    \begin{macrocode}
  125. \begin{document}
  126. \DocInput{letter.dtx}
  127. \PrintIndex
  128. % ^^A\PrintChanges
  129. \end{document}
  130. %</driver>
  131. %    \end{macrocode}
  132. % \fi
  133. % \changes{v1.1}{1993/12/18}{Changes to make it work with compatibility
  134. %    mode.}
  135. % \changes{v1.1a}{1993/12/19}{Removed float parms}
  136. % \changes{v1.1c}{1994/01/17}{Moved definition of \cs{@textop} to
  137. %    initialization section, to counteract setting of \cs{@texttop}
  138. %    in \cs{raggedbottom}.}
  139. % \changes{v1.1d}{1994/01/20}{Corrected margins: Now computed from
  140. %    \cs{paperwidth} and \cs{textwidth}, so that the text is
  141. %    horizontally centered.}
  142. % \changes{v1.1e}{1994/02/03}{Corrected checksum}
  143. % \changes{v1.2a}{1994/02/12}{Removed onecolumn and twocolumn options.}
  144. % \changes{v1.2a}{1994/02/12}{Changed label producing commands in .aux
  145. %    file.}
  146. % \changes{v1.2b}{1994/02/28}{Moved driver further up.}
  147. % \changes{v1.2c}{1994/03/08}{Always write .aux file.}
  148. % \changes{v1.2f}{1994/04/29}{Use LaTeX instead of LaTeX2e in messages}
  149. % \changes{v1.2f}{1994/04/29}{Removed \cmd\typeout message}
  150. % \changes{v1.2g}{1994/05/01}{Removed the use of \cmd\fileversion
  151. %    c.s.}
  152. % \changes{v1.2j}{1994/06/01}{Corrected driver code.}
  153. % \changes{v1.2k}{1994/06/17}{Various documentation enhancements}
  154. % \changes{v1.2p}{1994/12/11}{Use \cs{newcommand*} to define
  155. %    user-level commands that take an argument}
  156. % \iffalse
  157. % Copyright (C) 1994 LaTeX3 project, Frank Mittelbach
  158. % and Rainer Sch\"opf, all rights reserved.
  159. % \fi
  160. % \author{Leslie Lamport and Frank Mittelbach and Rainer Sch\"opf}
  161. % \title{Standard Letter Document Class for \LaTeX{} version 2e}
  162. % \maketitle
  163. % \tableofcontents
  164. % \StopEventually
  165. % \section{Initial Code}
  166. %    In this part we define a few commands that are used later on.
  167. % \begin{macro}{\@ptsize}
  168. %    This control sequence is used to store the second digit of the
  169. %    pointsize we are typesetting in. So, normally, it's value is one
  170. %    of 0, 1 or 2.
  171. %    \begin{macrocode}
  172. %<*letter>
  173. \newcommand\@ptsize{}
  174. %    \end{macrocode}
  175. % \end{macro}
  176. % \subsection{Setting Paper Sizes}
  177. %    The variables |\paperwidth| and |\paperheight| should reflect the
  178. %    physical paper size after trimming. For desk printer output this
  179. %    is usually the real paper size since there is no post-processing.
  180. % \changes{v1.0a}{1993/12/14}{Corrected typo, A4 is not 279 mm high}
  181. %    \begin{macrocode}
  182. \DeclareOption{a4paper}
  183.    {\setlength\paperheight {297mm}%
  184.     \setlength\paperwidth  {210mm}}
  185. \DeclareOption{a5paper}
  186.    {\setlength\paperheight {210mm}%
  187.     \setlength\paperwidth  {148mm}}
  188. \DeclareOption{b5paper}
  189.    {\setlength\paperheight {250mm}%
  190.     \setlength\paperwidth  {176mm}}
  191. \DeclareOption{letterpaper}
  192.    {\setlength\paperheight {11in}%
  193.     \setlength\paperwidth  {8.5in}}
  194. \DeclareOption{legalpaper}
  195.    {\setlength\paperheight {14in}%
  196.     \setlength\paperwidth  {8.5in}}
  197. \DeclareOption{executivepaper}
  198.    {\setlength\paperheight {10.5in}%
  199.     \setlength\paperwidth  {7.25in}}
  200. %    \end{macrocode}
  201. % \changes{v1.2o}{1994/08/26}{Added the option \textsf{landscape}}
  202. %    The option \Lopt{landscape} switches the values of |\paperheight|
  203. %    and |\paperwidth|, assuming the dimensions wer given for portrait
  204. %    paper.
  205. %    \begin{macrocode}
  206. \DeclareOption{landscape}
  207.    {\setlength\@tempdima   {\paperheight}%
  208.     \setlength\paperheight {\paperwidth}%
  209.     \setlength\paperwidth  {\@tempdima}}
  210. %    \end{macrocode}
  211. % \subsection{Choosing the type size}
  212. %    The type size options are handled by defining |\@ptsize| to
  213. %    contain the last digit of the size in question and branching on
  214. %    |\ifcase| statements. This is done for historical reasons to stay
  215. %    compatible with other packages that use the |\@ptsize| variable
  216. %    to select special actions. It makes the declarations of size
  217. %    options less than 10pt difficult, although one can probably use
  218. %    \texttt{9} and \texttt{8} assuming that a class wont define both
  219. %    \Lopt{8pt} and \Lopt{18pt} options.
  220. %    \begin{macrocode}
  221. \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
  222. \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
  223. \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
  224. %    \end{macrocode}
  225. %  \subsection{Two-side or one-side printing}
  226. %    Two-sided printing was not supported in the \LaTeX~2.09 version
  227. %    of this document class.
  228. % \changes{v1.2e}{1994/04/28}{Added oneside option and twoside option
  229. %    in native mode}
  230. %    \begin{macrocode}
  231. \if@compatibility
  232.   \DeclareOption{twoside}{\@latexerr{No `twoside' layout for letters}%
  233.                                    \@eha}
  234. \else
  235.   \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
  236. %    \end{macrocode}
  237. %    \begin{macrocode}
  238. \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
  239. %    \end{macrocode}
  240. %  \subsection{Draft option}
  241. %    If the user requests \Lopt{draft} we show any overfull boxes.
  242. %    We could probably add some more interesting stuff to this option.
  243. %    \begin{macrocode}
  244. \DeclareOption{draft}{\setlength\overfullrule{5pt}}
  245. \DeclareOption{final}{\setlength\overfullrule{0pt}}
  246. %    \end{macrocode}
  247. %  \subsection{Equation numbering on the left}
  248. %    The option \Lopt{leqno} can be used to get the equation numbers
  249. %    on the left side of the equation.
  250. % \changes{v1.1c}{1994/01/17}{Option leqno now read from .clo file.}
  251. %    \begin{macrocode}
  252. \DeclareOption{leqno}{\input{leqno.clo}}
  253. %    \end{macrocode}
  254. %  \subsection{Flush left displays}
  255. %    The option \Lopt{fleqn} redefines the displayed math environments
  256. %    in such a way that they come out flush left, with an indentation
  257. %    of |\mathindent| from the prevailing left margin.
  258. % \changes{v1.1}{1993/12/18}{Corrected typo in \cs{renewcommand},
  259. %    doubled hash marks.}
  260. % \changes{v1.1c}{1994/01/17}{Option fleqn now read from .clo file.}
  261. %    \begin{macrocode}
  262. \DeclareOption{fleqn}{\input{fleqn.clo}}
  263. %    \end{macrocode}
  264. % \section{Executing Options}
  265. %    Here we execute the default options to initialize certain
  266. %    variables.
  267. % \changes{v1.2e}{1994/04/28}{Added execution of `oneside' option}
  268. %    \begin{macrocode}
  269. \ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
  270. %    \end{macrocode}
  271. %    The |\ProcessOptions| command causes the execution of the code
  272. %    for every option \Lopt{foo} which is declared and for which the
  273. %    user typed the \Lopt{foo} option in his |\documentclass| command.
  274. %    For every option \Lopt{bar} he typed, which is not declared, the
  275. %    option is assumed to be a global option.  All options will be
  276. %    passed as document options to any |\usepackage| command in the
  277. %    document preamble.
  278. %    \begin{macrocode}
  279. \ProcessOptions
  280. %    \end{macrocode}
  281. %    Now that all the options have been executed we can load the
  282. %    chosen class option file that contains all size dependant code.
  283. %    \begin{macrocode}
  284. \input{size1\@ptsize.clo}
  285. %    \end{macrocode}
  286. %  \section{Loading Packages}
  287. %  The standard class files do not load additional packages.
  288. % \section{Document Layout}
  289. % \label{sec:maincode}
  290. %  In this section we are finally dealing with the nasty typographical
  291. %  details.
  292. % \subsection{Paragraphing}
  293. % \begin{macro}{\lineskip}
  294. % \begin{macro}{\normallineskip}
  295. %    These parameters control \TeX's behavior when two lines tend to
  296. %    come too close together.
  297. %    \begin{macrocode}
  298. \setlength\lineskip{1\p@}
  299. \setlength\normallineskip{1\p@}
  300. %    \end{macrocode}
  301. % \end{macro}
  302. % \end{macro}
  303. % \begin{macro}{\baselinestretch}
  304. %    This is used as a multiplier for |\baselineskip|. The default is
  305. %    to {\em not\/} stretch the baselines.
  306. %    \begin{macrocode}
  307. \renewcommand\baselinestretch{}
  308. %    \end{macrocode}
  309. % \end{macro}
  310. % \begin{macro}{\parskip}
  311. % \begin{macro}{\parindent}
  312. %    |\parskip| gives extra vertical space between paragraphs and
  313. %    |\parindent| is the width of the paragraph indentation.
  314. %    Letters are typeset without paragraph indentation.
  315. %    \begin{macrocode}
  316. \setlength\parskip{0.7em}
  317. \setlength\parindent{0\p@}
  318. %    \end{macrocode}
  319. % \end{macro}
  320. % \end{macro}
  321. % \begin{macro}{\@lowpenalty}
  322. % \begin{macro}{\@medpenalty}
  323. % \begin{macro}{\@highpenalty}
  324. %    The commands |\nopagebreak| and |\nolinebreak| put in penalties
  325. %    to discourage these breaks at the point they are put in.
  326. %    They use |\@lowpenalty|, |\@medpenalty| or |\@highpenalty|,
  327. %    dependant on their argument.
  328. %    \begin{macrocode}
  329. \@lowpenalty   51
  330. \@medpenalty  151
  331. \@highpenalty 301
  332. %    \end{macrocode}
  333. % \end{macro}
  334. % \end{macro}
  335. % \end{macro}
  336. % \begin{macro}{\clubpenalty}
  337. % \begin{macro}{\widowpenalty}
  338. %    These penalties are used to discourage club and widow lines.
  339. %    Because we use their default values we only show them here,
  340. %    commented out.
  341. %    \begin{macrocode}
  342. % \clubpenalty  150
  343. % \widowpenalty 150
  344. %    \end{macrocode}
  345. % \end{macro}
  346. % \end{macro}
  347. % \begin{macro}{\displaywidowpenalty}
  348. % \begin{macro}{\predisplaypenalty}
  349. % \begin{macro}{\postdisplaypenalty}
  350. %    Discourage (but not so much) widows in front of a math display
  351. %    and forbid breaking directly in front of a display. Allow break
  352. %    after a display without a penalty. Again the default values are
  353. %    used, therefore we only show them here.
  354. %    \begin{macrocode}
  355. % \displaywidowpenalty 50
  356. % \predisplaypenalty   10000
  357. % \postdisplaypenalty  0
  358. %    \end{macrocode}
  359. % \end{macro}
  360. % \end{macro}
  361. % \end{macro}
  362. % \begin{macro}{\interlinepenalty}
  363. %    Allow the breaking of a page in the middle of a paragraph.
  364. %    \begin{macrocode}
  365. % \interlinepenalty 0
  366. %    \end{macrocode}
  367. % \end{macro}
  368. % \begin{macro}{\brokenpenalty}
  369. %    We allow the breaking of a page after a hyphenated line.
  370. %    \begin{macrocode}
  371. % \brokenpenalty 0
  372. %    \end{macrocode}
  373. % \end{macro}
  374. % \subsection{Page Layout}
  375. %    All margin dimensions are measured from a point one inch from the
  376. %    top and lefthand side of the page.
  377. % \subsubsection{Vertical spacing}
  378. % \begin{macro}{\headheight}
  379. % \begin{macro}{\headsep}
  380. %    The |\headheight| is the height of the box that will contain the
  381. %    running head. The |\headsep| is the distance between the bottom
  382. %    of the running head and the top of the text. |\topskip| is the
  383. %    |\baselineskip| for the first line on a page, its value depends
  384. %    on the size option that was specified. Therefore it is
  385. %    initialized in one of the \file{size1x.clo} files.
  386. %    \begin{macrocode}
  387. \setlength\headheight{12\p@}
  388. \setlength\headsep   {45\p@}
  389. %    \end{macrocode}
  390. % \end{macro}
  391. % \end{macro}
  392. % \begin{macro}{\footskip}
  393. %    The distance from the baseline of the box which contains the
  394. %    running footer to the baseline of last line of text is controlled
  395. %    by the |\footskip|.
  396. %    Bottom of page:
  397. %    \begin{macrocode}
  398. \setlength\footskip{25\p@}
  399. %    \end{macrocode}
  400. % \end{macro}
  401. % \changes{v1.2n}{1994/07/13}{Setting of \cs{maxdepth} and
  402. %    \cs{@maxdepth} already happens in the size.. files, removed
  403. %    here}
  404. % \subsubsection{The dimension of text}
  405. % \begin{macro}{\textwidth}
  406. %    When we are in compatibility mode we have to make sure that the
  407. %    dimensions of the printed area are not different from what the
  408. %    user was used to see.
  409. % \changes{v1.2n}{1994/07/13}{Setting \cs{textwidth} to a fixed value
  410. %    should only happen in compatibility mode}
  411. %    \begin{macrocode}
  412. \if@compatibility
  413.   \setlength\textwidth{365\p@}
  414. %    \end{macrocode}
  415. % \end{macro}
  416. % \begin{macro}{\textheight}
  417. %    Now that we have computed the width of the text, we have to take
  418. %    care of the height. The |\textheight| is the height of text
  419. %    (including footnotes and figures, excluding running head and
  420. %    foot).
  421. % \changes{v1.2n}{1994/07/13}{Setting \cs{textheight} to a fixed value
  422. %    should only happen in compatibility mode}
  423. %    \begin{macrocode}
  424.   \setlength\textheight{505\p@}
  425. %    \end{macrocode}
  426. %    In native mode we use the dimensions as they were computed by one
  427. %    of the \Lopt{xxpt} options, together with one of the
  428. %    \Lopt{..paper} options.
  429. % \end{macro}
  430. % \subsubsection{Margins}
  431. % \begin{macro}{\oddsidemargin}
  432. % \begin{macro}{\evensidemargin}
  433. % \begin{macro}{\marginparwidth}
  434. % \changes{v1.1d}{1994/01/20}{Corrected margins: Now computed from
  435. %    \cs{paperwidth} and \cs{textwidth}.}  The values of
  436. %    |\oddsidemargin| and |\evensidemargin| are computed from those of
  437. %    |\paperwidth| and |\textwidth|.
  438. % \changes{v1.2n}{1994/07/13}{Added fixed values for these parameters
  439. %    in compatibillity mode}
  440. %    \begin{macrocode}
  441. \if@compatibility
  442.   \setlength{\oddsidemargin}{53pt}
  443.   \setlength{\evensidemargin}{53pt}
  444.   \setlength{\marginparwidth}{90pt}
  445. \else
  446.   \setlength{\@tempdima}{\paperwidth}
  447.   \addtolength{\@tempdima}{-2in}
  448.   \addtolength{\@tempdima}{-\textwidth}
  449.   \setlength\oddsidemargin   {.5\@tempdima}
  450.   \setlength\evensidemargin  {\oddsidemargin}
  451.   \setlength\marginparwidth  {90\p@}
  452. %    \end{macrocode}
  453. % \end{macro}
  454. % \end{macro}
  455. % \end{macro}
  456. % \begin{macro}{\marginparsep}
  457. % \begin{macro}{\marginparpush}
  458. %    The horizontal space between the main text and marginal notes is
  459. %    determined by |\marginparsep|, the minimum vertical separation
  460. %    between two marginal notes is controlled by |\marginparpush|.
  461. %    \begin{macrocode}
  462. \setlength\marginparsep {11\p@}
  463. \setlength\marginparpush{5\p@}
  464. %    \end{macrocode}
  465. % \end{macro}
  466. % \end{macro}
  467. % \begin{macro}{\topmargin}
  468. %    The |\topmargin| is the distance between the top of `the
  469. %    printable area' --which is 1 inch below the top of the paper--
  470. %    and the top of the box which contains the running head.
  471. %    It can now be computed from the values set above.
  472. %    \begin{macrocode}
  473. \setlength\topmargin{27pt}
  474. %    \end{macrocode}
  475. % \end{macro}
  476. % \subsubsection{Footnotes}
  477. % \begin{macro}{\footnotesep}
  478. %    |\footnotesep| is the height of the strut placed at the beginning
  479. %    of every footnote. It equals the  height of a normal
  480. %    |\footnotesize| strut in this
  481. %    class, thus no extra space occurs between footnotes.
  482. %    \begin{macrocode}
  483. \setlength\footnotesep{12\p@}
  484. %    \end{macrocode}
  485. % \end{macro}
  486. % \begin{macro}{\footins}
  487. %    |\skip\footins| is the space between the last line of the main
  488. %    text and the top of the first footnote.
  489. %    \begin{macrocode}
  490. \setlength{\skip\footins}{10\p@ \@plus 2\p@ \@minus 4\p@}
  491. %    \end{macrocode}
  492. % \end{macro}
  493. % \subsection{Page Styles}
  494. %    The page style \pstyle{foo} is defined by defining the command
  495. %    |\ps@foo|.   This command should make only local definitions.
  496. %    There should be no stray spaces in the definition, since they
  497. %    could lead to mysterious extra spaces in the output (well, that's
  498. %    something that should be always avoided).
  499. % \begin{macro}{\@evenhead}
  500. % \begin{macro}{\@oddhead}
  501. % \begin{macro}{\@evenfoot}
  502. % \begin{macro}{\@oddfoot}
  503. %    The |\ps@...| command defines the macros |\@oddhead|,
  504. %    |\@oddfoot|, |\@evenhead|, and |\@evenfoot| to define the running
  505. %    heads and feet---e.g., |\@oddhead| is the macro to produce the
  506. %    contents of the heading box for odd-numbered pages.  It is called
  507. %    inside an |\hbox| of width |\textwidth|.
  508. % \end{macro}
  509. % \end{macro}
  510. % \end{macro}
  511. % \end{macro}
  512. % \subsubsection{Marking conventions}
  513. %    To make headings determined by the sectioning commands, the page
  514. %    style defines the commands |\chaptermark|, |\sectionmark|,
  515. %    \ldots, where |\chaptermark{|\meta{text}|}| is called by
  516. %    |\chapter| to set a mark, and so on.
  517. %    The |\...mark| commands and the |\...head| macros are defined
  518. %    with the help of the following macros.  (All the |\...mark|
  519. %    commands should be initialized to no-ops.)
  520. %    \LaTeX{} extends \TeX's |\mark| facility by producing two kinds
  521. %    of marks, a `left' and a `right' mark, using the following
  522. %    commands:
  523. %    \begin{flushleft}
  524. %     |\markboth{|\meta{left}|}{|\meta{right}|}|: Adds both marks.
  525. %     |\markright{|\meta{right}|}|: Adds a `right' mark.
  526. %     |\leftmark|: Used in the |\@oddhead|, |\@oddfoot|, |\@evenhead|
  527. %                  or |\@evenfoot| macros, it gets the current `left'
  528. %                  mark.  |\leftmark| works like \TeX's |\botmark|
  529. %                  command.
  530. %     |\rightmark|: Used in the |\@oddhead|, |\@oddfoot|, |\@evenhead|
  531. %                   or  |\@evenfoot| macros, it gets the current
  532. %                   `right' mark. |\rightmark| works like \TeX's
  533. %                   |\firstmark| command.
  534. %    \end{flushleft}
  535. %    The marking commands work reasonably well for right marks
  536. %    `numbered within' left marks--e.g., the left mark is changed by a
  537. %    |\chapter| command and the right mark is changed by a |\section|
  538. %    command.  However, it does produce somewhat anomalous results if
  539. %    two |\markboth|'s occur on the same page.
  540. %    Commands like |\tableofcontents| that should set the marks in some
  541. %    page styles use a |\@mkboth| command, which is |\let| by the
  542. %    pagestyle command (|\ps@...|)  to |\markboth| for setting the
  543. %    heading or to |\@gobbletwo| to do nothing.
  544. %    \begin{macrocode}
  545. % %%%\mark{{}{}}   % Initializes TeX's marks   <--- can vanish
  546. %    \end{macrocode}
  547. % \subsubsection{Defining the page styles}
  548. % \label{sec:pagestyle}
  549. %    The pagestyles \pstyle{empty} and \pstyle{plain} are defined in
  550. %    \file{latex.tex}.
  551. % \begin{macro}{\ps@headings}
  552. %    The definition of the page style \pstyle{headings} has to be
  553. %    different for two sided printing than it is for one sided
  554. %    printing.
  555. % \changes{v1.2e}{1994/04/28}{Added twoside support}
  556. %    \begin{macrocode}
  557. \if@twoside
  558.   \def\ps@headings{%
  559. %    \end{macrocode}
  560. %    The running feet are empty in this page style.
  561. %    \begin{macrocode}
  562.       \let\@oddfoot\@empty\let\@evenfoot\@empty
  563. %    \end{macrocode}
  564. %    The running head contains some information about this letter. The
  565. %    head is the same for even and odd pages.
  566. % \changes{v1.2i}{1994/05/12}{Made running heads the same on odd and
  567. %    even pages}
  568. % \changes{v1.2k}{1994/06/17}{Added a missing brace}
  569. %    \begin{macrocode}
  570.       \def\@oddhead{\slshape\headtoname{} \ignorespaces\toname
  571.                     \hfil \@date
  572.                     \hfil \pagename{} \thepage}%
  573.       \let\@evenhead\@oddhead}
  574. %    \end{macrocode}
  575. %    For one sided printing we don't need to define |\@evenhead| so
  576. %    the definition is somewhat simpler.
  577. %    \begin{macrocode}
  578. \else
  579.   \def\ps@headings{%
  580.       \let\@oddfoot\@empty
  581.       \def\@oddhead{\slshape\headtoname{} \ignorespaces\toname
  582.                     \hfil \@date
  583.                     \hfil \pagename{} \thepage}}
  584. %    \end{macrocode}
  585. % \end{macro}
  586. % \begin{macro}{\ps@empty}
  587. %    The definition of the page style \pstyle{empty} is simple:
  588. %    No running head or foot at all.
  589. % \changes{v1.2e}{1994/04/28}{Also make even feet and head empty}
  590. %    \begin{macrocode}
  591. \def\ps@empty{%
  592.       \let\@oddfoot\@empty\let\@oddhead\@empty
  593.       \let\@evenfoot\@empty\let\@evenhead\@empty}
  594. %    \end{macrocode}
  595. % \end{macro}
  596. % \begin{macro}{\ps@firstpage}
  597. %    The page style \pstyle{firstpage} puts the telephone number
  598. %    in the proper place for the letterhead. It should be adapted
  599. %    to site conventions. The size of the number is determined
  600. %    depending on the main size.
  601. %    \begin{macrocode}
  602. \def\ps@firstpage{%
  603.      \let\@oddhead\@empty
  604.      \def\@oddfoot{\raisebox{-45\p@}[\z@]{%
  605.         \hbox to\textwidth{\hspace*{100\p@}%
  606.           \ifcase \@ptsize\relax
  607.              \normalsize
  608.           \or
  609.              \small
  610.           \or
  611.              \footnotesize
  612.           \fi
  613.         \fromlocation \hfill \telephonenum}}\hss}}
  614. %    \end{macrocode}
  615. % \end{macro}
  616. % \begin{macro}{\ps@plain}
  617. %    The definition of the page style \pstyle{plain} is again simple.
  618. % \changes{v1.2e}{1994/04/28}{Added definition of \cmd\@evenfoot
  619. %    because of twoside option}
  620. %    \begin{macrocode}
  621. \def\ps@plain{%
  622.       \let\@oddhead\@empty
  623.       \def\@oddfoot{\rmfamily\hfil\thepage\hfil}%
  624.       \def\@evenfoot{\rmfamily\hfil\thepage\hfil}}
  625. %    \end{macrocode}
  626. % \end{macro}
  627. % \section{Document Markup}
  628. % \subsection{Global Declarations}
  629. % \begin{macro}{\name}
  630. % \begin{macro}{\signature}
  631. % \begin{macro}{\address}
  632. % \begin{macro}{\location}
  633. % \begin{macro}{\telephone}
  634. % The following declarations, shown with examples, give information
  635. % about the sender:
  636. % \begin{itemize}
  637. %   \item |\name{Dr. L. User}| : to be used for the return address on
  638. %          the envelope.
  639. %    \begin{macrocode}
  640. \newcommand*{\name}[1]{\def\fromname{#1}}
  641. %    \end{macrocode}
  642. %   \item |\signature{Larry User}| : goes after the closing.
  643. %    \begin{macrocode}
  644. \newcommand*{\signature}[1]{\def\fromsig{#1}}
  645. %    \end{macrocode}
  646. %   \item |\address{3245 Foo St.\\Gnu York}| : used as the return
  647. %          address in the
  648. %          letter and on the envelope.  If not declared, then an
  649. %          institutional standard address is used.
  650. %    \begin{macrocode}
  651. \newcommand*{\address}[1]{\def\fromaddress{#1}}
  652. %    \end{macrocode}
  653. %   \item |\location{Room 374}| : Acts as modifier to the standard
  654. %          institutional address.
  655. %    \begin{macrocode}
  656. \newcommand*{\location}[1]{\def\fromlocation{#1}}
  657. %    \end{macrocode}
  658. %   \item |\telephone{(415)123-4567}| : Just in case some style puts it
  659. %          on the letter.
  660. % \changes{v1.2m}{1994/06/23}{Removed typo (#[] instead of [1])}
  661. %    \begin{macrocode}
  662. \newcommand*{\telephone}[1]{\def\telephonenum{#1}}
  663. %    \end{macrocode}
  664. % \end{itemize}
  665. % \end{macro}
  666. % \end{macro}
  667. % \end{macro}
  668. % \end{macro}
  669. % \end{macro}
  670. % \begin{macro}{\fromname}
  671. % \begin{macro}{\fromsig}
  672. % \begin{macro}{\fromaddress}
  673. % \begin{macro}{\fromlocation}
  674. % \begin{macro}{\telephonenum}
  675. %    We make sure that the internal control sequences that are used to
  676. %    store the information exist and are empty.
  677. %    \begin{macrocode}
  678. \name{}
  679. \signature{}
  680. \address{}
  681. \location{}
  682. \telephone{}
  683. %    \end{macrocode}
  684. % \end{macro}
  685. % \end{macro}
  686. % \end{macro}
  687. % \end{macro}
  688. % \end{macro}
  689. % \begin{macro}{\makelabels}
  690. %     The |\makelabels| declaration causes mailing labels to be made.
  691. %    \begin{macrocode}
  692. \newcommand*{\makelabels}{%
  693. %    \end{macrocode}
  694. %    At the beginning of the document, we need to activate the
  695. %    |\@mlabel| and |\@startlabels| commands, as well as  write
  696. %    |\@startlabels| to the |.aux| file.
  697. %    \begin{macrocode}
  698.   \AtBeginDocument{%
  699.      \let\@startlabels\startlabels
  700.      \let\@mlabel\mlabel
  701.      \if@filesw
  702.        \immediate\write\@mainaux{\string\@startlabels}\fi}%
  703. %    \end{macrocode}
  704. %    At the end of the document we need to write |\clearpage| to the
  705. %    |.aux| file.
  706. %    \begin{macrocode}
  707.   \AtEndDocument{%
  708.      \if@filesw\immediate\write\@mainaux{\string\clearpage}\fi}}
  709. %    \end{macrocode}
  710. %    |\makelabels| is allowed only before the |\begin{document}|
  711. %    command.
  712. %    \begin{macrocode}
  713. \@onlypreamble\makelabels
  714. %    \end{macrocode}
  715. % \end{macro}
  716. % \subsection{The generic letter commands}
  717. % \begin{environment}{letter}
  718. %     The letter environment creates a new letter, starting from page 1.
  719. %     (The first page is unnumbered.)  It has a single argument, which
  720. %     is the addressee and his address, as in
  721. %\begin{verbatim}
  722. %  \begin{letter}{Sam Jones \\
  723. %                 Institute for Retarded Study\\
  724. %                 Princeton, N.J.}
  725. %\end{verbatim}
  726. %     Local declarations, such as |\address|, can follow the
  727. %     |\begin{letter}|.
  728. % \changes{v1.2e}{1994/04/28}{When printing twosided a new letter
  729. %    shouldn't start on the back of the previous one. Added insertion
  730. %    of a blank page when necessary.}
  731. %    \begin{macrocode}
  732. \newenvironment{letter}[1]
  733.   {\newpage
  734.     \if@twoside \ifodd\c@page
  735.                 \else\thispagestyle{empty} \hbox{}\newpage\fi
  736.     \fi
  737.     \c@page\@ne
  738.     \interlinepenalty=200 % smaller than the TeXbook value
  739. %    \end{macrocode}
  740. %    The |\leavevmode| and |\ignorespaces| commands are there for
  741. %    protecting against an empty argument.
  742. %    \begin{macrocode}
  743.     \@processto{\leavevmode\ignorespaces #1}}
  744. %    \end{macrocode}
  745. %    The end of the environment possibly writes the address
  746. %    information on the \file{.aux} file.
  747. % \changes{v1.2p}{1994/12/11}{No longer redefine \cs{protect} but use
  748. %    one of the available settings}
  749. %    \begin{macrocode}
  750.   {\stopletter\@@par\pagebreak\@@par
  751.     \if@filesw
  752.       \begingroup
  753.         \let\\=\relax
  754.         \let\protect\@unexpandable@protect
  755.         \immediate\write\@auxout{%
  756.           \string\@mlabel{\returnaddress}{\toname\\\toaddress}}%
  757.       \endgroup
  758.     \fi}
  759. %    \end{macrocode}
  760. % \end{environment}
  761. % \begin{macro}{\@processto}
  762. % \begin{macro}{\@xproc}
  763. % \begin{macro}{\@yproc}
  764. %    |\@processto| gets the |\toname| and |\toaddress| from the letter
  765. %    environment's macro argument. |\@xproc| and |\@yproc| are auxiliary
  766. %    macros.
  767. %    \begin{macrocode}
  768. \long\def\@processto#1{\@xproc #1\\@@@\ifx\toaddress\@empty
  769.     \else \@yproc #1@@@\fi}
  770. \long\def\@xproc #1\\#2@@@{\def\toname{#1}\def\toaddress{#2}}
  771. \long\def\@yproc #1\\#2@@@{\def\toaddress{#2}}
  772. %    \end{macrocode}
  773. % \end{macro}
  774. % \end{macro}
  775. % \end{macro}
  776. % \subsubsection{Page breaking control}
  777. % \begin{macro}{\stopbreaks}
  778. %    When the command |\stopbreaks| is issued no page breaks should
  779. %    occur until |\startbreaks| is called.
  780. %    \begin{macrocode}
  781. \newcommand*{\stopbreaks}{\interlinepenalty \@M
  782.    \def\par{\@@par\nobreak}\let\\=\@nobreakcr
  783.    \let\vspace\@nobreakvspace}
  784. %    \end{macrocode}
  785. % \end{macro}
  786. % \begin{macro}{\nobreakvspace}
  787. % \begin{macro}{\nobreakvspacex}
  788. % \begin{macro}{\nobreakcr}
  789. %    These are needed by |\stopbreaks|
  790. %    \begin{macrocode}
  791. \def\@nobreakvspace{\@ifstar{\@nobreakvspacex}{\@nobreakvspacex}}
  792. \def\@nobreakvspacex#1{\ifvmode\nobreak\vskip #1\relax\else
  793.                \@bsphack\vadjust{\nobreak\vskip #1}\@esphack\fi}
  794. \def\@nobreakcr{\vadjust{\penalty\@M}\@ifstar{\@xnewline}{\@xnewline}}
  795. %    \end{macrocode}
  796. % \end{macro}
  797. % \end{macro}
  798. % \end{macro}
  799. % \begin{macro}{\startbreaks}
  800. %    This cancels the effect of |\stopbreaks|.
  801. %    \begin{macrocode}
  802. \newcommand*{\startbreaks}{\let\\=\@normalcr
  803.    \interlinepenalty 200\def\par{\@@par\penalty 200\relax}}
  804. %    \end{macrocode}
  805. % \end{macro}
  806. % \begin{macro}{\longindentation}
  807. %    The size of the indent to use before the closing of the letter.
  808. %    \begin{macrocode}
  809. \newdimen\longindentation
  810. \longindentation=.5\textwidth
  811. %    \end{macrocode}
  812. % \end{macro}
  813. % \begin{macro}{\indentedwidth}
  814. %    The width of the closing of the letter.
  815. %    \begin{macrocode}
  816. \newdimen\indentedwidth
  817. \indentedwidth=\textwidth
  818. \advance\indentedwidth -\longindentation
  819. %    \end{macrocode}
  820. % \end{macro}
  821. % \begin{macro}{\opening}
  822. %     Text is begun with the |\opening| command, whose argument
  823. %     generates the salutation, as in
  824. %\begin{verbatim}
  825. %      \opening{Dear Henry,}
  826. %\end{verbatim}
  827. %    This should produce everything up to and including the `Dear Henry,'
  828. %    and a \par command that follows. Since there's a |\vfil| at the
  829. %    bottom of every page, it can add vertical fill to position a short
  830. %    letter. It should use the following commands:
  831. %   \begin{itemize}
  832. %   \item |\toname| : name part of `to' address.
  833. %                     Will be one line long. 
  834. %   \item |\toaddress| : address part of `to' address.
  835. %                        The lines separated by |\\|.
  836. %   \item |\fromname| : name of sender.
  837. %   \item |\fromaddress| : argument of current |\address|
  838. %     declaration-- null if none.  Should use standard institutional
  839. %     address if null. 
  840. %   \item |\fromlocation| : argument of current |\location|
  841. %     declaration--null if none.
  842. %   \item |\telephonenum| : argument of current |\telephone|
  843. %     declaration--null if none.
  844. %    \end{itemize}
  845. %    \begin{macrocode}
  846. \newcommand*{\opening}[1]{\ifx\@empty\fromaddress
  847.   \thispagestyle{firstpage}%
  848.     {\raggedleft\@date\par}%
  849.   \else  % home address
  850.     \thispagestyle{empty}%
  851.     {\raggedleft\begin{tabular}{l}\ignorespaces
  852.       \fromaddress \\*[2\parskip]%
  853.       \@date \end{tabular}\par}%
  854.   \fi
  855.   \vspace{2\parskip}%
  856.   {\raggedright \toname \\ \toaddress \par}%
  857.   \vspace{2\parskip}%
  858.   #1\par\nobreak}
  859. %    \end{macrocode}
  860. % \end{macro}
  861. % \begin{macro}{\closing}
  862. %     The body of the letter follows, ended by a |\closing| command,
  863. %     as in
  864. %\begin{verbatim}
  865. %            \closing{Yours truly,}
  866. %\end{verbatim}
  867. %     This command generates the closing matter, and the signature.
  868. %     An obvious thing to do is to use a |\parbox| for the closing
  869. %     and the signature.  Should use the following:
  870. %    \begin{itemize}
  871. %      \item |\fromsig| : argument of current |\signature| declaration
  872. %                   or, if null, the |\fromname|.
  873. %      \item |\stopbreaks| : a macro that inhibits page breaking.
  874. %    \end{itemize}
  875. %    \begin{macrocode}
  876. \newcommand{\closing}[1]{\par\nobreak\vspace{\parskip}%
  877.   \stopbreaks
  878.   \noindent
  879.   \ifx\@empty\fromaddress\else
  880.   \hspace*{\longindentation}\fi
  881.   \parbox{\indentedwidth}{\raggedright
  882.        \ignorespaces #1\\[6\medskipamount]%
  883.        \ifx\@empty\fromsig
  884.            \fromname
  885.        \else \fromsig \fi\strut}%
  886.    \par}
  887. %    \end{macrocode}
  888. % \end{macro}
  889. % \begin{macro}{\smallskipamount}
  890. % \begin{macro}{\mdeskipamount}
  891. % \begin{macro}{\bigskipamount}
  892. %   Of these three, only |\medskipmount| is actually used above.
  893. %    \begin{macrocode}
  894. %\smallskipamount=.5\parskip
  895. \medskipamount=\parskip
  896. %\bigskipamount=2\parskip
  897. %    \end{macrocode}
  898. % \end{macro}
  899. % \end{macro}
  900. % \end{macro}
  901. % \begin{macro}{\cc}
  902. % \begin{macro}{\encl}
  903. % \begin{macro}{\ps}
  904. %    After the |\closing| you can put arbitrary stuff, which is typeset
  905. %    with zero |\parindent| and no page breaking.  Commands designed
  906. %    for use after the closing are:
  907. %    \begin{verbatim}
  908. %  \cc{Tinker\\Evers\\Chance}
  909. %\end{verbatim}
  910. %    which produces:\\
  911. %    \begin{tabular}{ll}
  912. %        cc: & Tinker\\
  913. %            & Evers\\
  914. %            & Chance
  915. %    \end{tabular}\\
  916. %    Note the obvious use of |\parbox|.
  917. %    \begin{macrocode}
  918. \newcommand*{\cc}[1]{%
  919.   \par\noindent
  920.   \parbox[t]{\textwidth}{%
  921.     \@hangfrom{\reset@font\rm \ccname: }%
  922.     \ignorespaces #1\strut}\par}
  923. %    \end{macrocode}
  924. %\begin{verbatim}
  925. %  \encl{Foo(2)\\Bar}
  926. %\end{verbatim}
  927. %    which produces:\\
  928. %    \begin{tabular}{ll}
  929. %        encl: & Foo(2)\\
  930. %              & Bar
  931. %    \end{tabular}
  932. %    \begin{macrocode}
  933. \newcommand*{\encl}[1]{%
  934.   \par\noindent
  935.   \parbox[t]{\textwidth}{%
  936.     \@hangfrom{\reset@font\rm \enclname: }%
  937.     \ignorespaces #1\strut}\par}
  938. %    \end{macrocode}
  939. %    The only thing |\ps| needs to do is call |\startbreaks|,
  940. %        which allows page breaking again.
  941. %    \begin{macrocode}
  942. \newcommand*{\ps}{\par\startbreaks}
  943. %    \end{macrocode}
  944. % \end{macro}
  945. % \end{macro}
  946. % \end{macro}
  947. % \begin{macro}{\stopletter}
  948. %     The |\stopletter| command is called by |\endletter| to do the
  949. %     following:
  950. %    \begin{itemize}
  951. %     \item Add any desired  fill  or other material at the end of the
  952. %       letter.
  953. %     \item Define |\returnaddress| to be the return address for the
  954. %       mailing
  955. %      label.  More precisely, it is the first argument of the |\mlabel|
  956. %       command described below. It should be defined to null if the
  957. %       return address doesn't appear on the labels.  Any command,
  958. %       other than |\\|, that should not be expanded until the |\mlabel|
  959. %       command is actually executed must be preceded by |\protect|.
  960. %       Whenever possible, |\protect| commands in the definition of
  961. %       |\returnaddress|---it's much more efficient that way.  In
  962. %       particular, when the standard return address is used, you
  963. %       should define |\returnaddress| to something like
  964. %       |\protect\standardreturnaddress|.
  965. %    \end{itemize}
  966. %    \begin{macrocode}
  967. \newcommand*{\stopletter}{}
  968. %    \end{macrocode}
  969. % \end{macro}
  970. % \subsection{Customizing the labels}
  971. %    Commands for generating the labels are put on the \file{.aux} file,
  972. %    which is read in and processed by the |\end{document}| command.
  973. %    You have to define the following two commands:
  974. %    \begin{itemize}
  975. %    \item |\startlabels| : Should reset the page layout parameters if
  976. %    necessary. 
  977. %    \item |\mlabel{RETURN ADDRESS}{TO ADRESS}| : Command to generate
  978. %    a single label.
  979. %    \end{itemize}
  980. %     
  981. % \begin{macro}{\returnaddress}
  982. %    The return address for the mailing labels can be stored in this
  983. %    macro.
  984. %    \begin{macrocode}
  985. \newcommand*{\returnaddress}{}
  986. %    \end{macrocode}
  987. % \end{macro}
  988. % \begin{macro}{\labelcount}
  989. %    A register to count the labels 
  990. %    \begin{macrocode}
  991. \newcount\labelcount
  992. %    \end{macrocode}
  993. % \end{macro}
  994. % \begin{macro}{\startlabels}
  995. %     The following |\startlabels| command sets things up for
  996. %     producing labels in two columns of five 2" $\times$ 4-1/4"
  997. %     labels each, suitable for reproducing onto Avery brand number
  998. %     5352 address labels. 
  999. %    \begin{macrocode}
  1000. \newcommand*{\startlabels}{\labelcount\z@
  1001.   \pagestyle{empty}%
  1002.   \let\@texttop\relax
  1003.   \topmargin -50\p@
  1004.   \headsep \z@
  1005.   \oddsidemargin -35\p@
  1006.   \evensidemargin -35\p@
  1007.   \textheight 10in
  1008.   \@colht\textheight  \@colroom\textheight \vsize\textheight
  1009.   \textwidth 550\p@
  1010.   \columnsep 25\p@
  1011.   \ifcase \@ptsize\relax
  1012.     \normalsize
  1013.   \or
  1014.     \small
  1015.   \or
  1016.     \footnotesize
  1017.   \fi
  1018.   \baselineskip \z@
  1019.   \lineskip \z@
  1020.   \boxmaxdepth \z@
  1021.   \parindent \z@
  1022.   \twocolumn\relax}
  1023. %    \end{macrocode}
  1024. % \end{macro}
  1025. % \begin{macro}{\@startlabels}
  1026. %    |\@startlabels| is the command name that is written to the |.aux|
  1027. %    file. It is a no-op at first, and defined to be the same as
  1028. %    |\startlabels| in the |\begin{document}| hook.
  1029. %    \begin{macrocode}
  1030. \let\@startlabels=\relax
  1031. %    \end{macrocode}
  1032. % \end{macro}
  1033. % \begin{macro}{\mlabel}
  1034. %    This command prints an address label; it is used when the user
  1035. %    specified |\makelabels| in the preamble of his document. The
  1036. %    command |\mlabel| takes two arguments; the second argument is
  1037. %    supposed to be the address; the first argument can be used to
  1038. %    print a return address. In this document class we ignore the
  1039. %    first argument. Also the labels are supposed to be 2~inch high
  1040. %    and 3.6~inch wide. When your address labels have a different you
  1041. %    will have to defined your own |\mlabel| command.
  1042. % \changes{v1.2p}{1994/12/11}{Redefined \cs{mlabel} to not use the
  1043. %    \cs{setbox} primitive}
  1044. %    \begin{macrocode}
  1045. \newcommand*{\mlabel}[2]{%
  1046.   \parbox[b][2in][c]{3.6in}{\strut\ignorespaces #2}%
  1047. %    \end{macrocode}
  1048. % \end{macro}
  1049. % \begin{macro}{\@mlabel}
  1050. %    |\@mlabel| is written to the |.aux| file in place of |\mlabel|.
  1051. %    That allows to define it as a no-op per default, and activate it
  1052. %    in the |\begin{document}| hook.
  1053. %    \begin{macrocode}
  1054. \let\@mlabel=\@gobbletwo
  1055. %    \end{macrocode}
  1056. % \end{macro}
  1057. % \subsection{Lists}
  1058. % \subsubsection{General List Parameters}
  1059. % The following commands are used to set the default values for the list
  1060. % environment's parameters. See the \LaTeX{} manual for an explanation
  1061. % of the meanings of the parameters.  Defaults for the list
  1062. % environment are set as follows.  First, |\rightmargin|,
  1063. % |\listparindent| and |\itemindent| are set to 0pt.  Then, for a Kth
  1064. % level list, the command |\@listK| is called, where `K' denotes `i',
  1065. % `i', ... , `vi'.  (I.e., |\@listiii| is called for a third-level
  1066. % list.)  By convention, |\@listK| should set |\leftmargin| to
  1067. % |\leftmarginK|.
  1068. % \begin{macro}{\leftmargin}
  1069. % \begin{macro}{\leftmargini}
  1070. % \begin{macro}{\leftmarginii}
  1071. % \begin{macro}{\leftmarginiii}
  1072. % \begin{macro}{\leftmarginiv}
  1073. % \begin{macro}{\leftmarginv}
  1074. % \begin{macro}{\leftmarginvi}
  1075. % For efficiency, level-one list's values are defined at top level, and
  1076. % |\@listi| is defined to set only |\leftmargin|.
  1077. %    \begin{macrocode}
  1078. \setlength\leftmargini  {2.5em}
  1079. %    \end{macrocode}
  1080. %    The following three are calculated so  that they are larger than
  1081. %    the sum of |\labelsep| and the width of the default labels (which
  1082. %    are `(m)', `vii.' and `M.').
  1083. %    \begin{macrocode}
  1084. \setlength\leftmarginii  {2.2em}
  1085. \setlength\leftmarginiii {1.87em}
  1086. \setlength\leftmarginiv  {1.7em}
  1087. \setlength\leftmarginv  {1em}
  1088. \setlength\leftmarginvi {1em}
  1089. %    \end{macrocode}
  1090. %    Here we set the top level leftmargin.
  1091. %    \begin{macrocode}
  1092. \setlength\leftmargin    {\leftmargini}
  1093. %    \end{macrocode}
  1094. % \end{macro}
  1095. % \end{macro}
  1096. % \end{macro}
  1097. % \end{macro}
  1098. % \end{macro}
  1099. % \end{macro}
  1100. % \end{macro}
  1101. % \begin{macro}{\labelsep}
  1102. % \begin{macro}{\labelwidth}
  1103. %    |\labelsep| is the distance between the label and the text of an
  1104. %    item; |\labelwidth| is the width of the label.
  1105. %    \begin{macrocode}
  1106. \setlength  \labelsep  {5\p@}
  1107. \setlength  \labelwidth{\leftmargini}
  1108. \addtolength\labelwidth{-\labelsep}
  1109. %    \end{macrocode}
  1110. % \end{macro}
  1111. % \end{macro}
  1112. % \begin{macro}{\partopsep}
  1113. %    When the user leaves a blank line before the environment an extra
  1114. %    vertical space of |\partopsep| is inserted, in addition to
  1115. %    |\parskip| and |\topsep|.
  1116. %    \begin{macrocode}
  1117. \setlength\partopsep{0\p@}
  1118. %    \end{macrocode}
  1119. % \end{macro}
  1120. % \begin{macro}{\@beginparpenalty}
  1121. % \begin{macro}{\@endparpenalty}
  1122. %    These penalties are inserted before and after a list or paragraph
  1123. %    environment. They are set to a bonus value to encourage page
  1124. %    breaking at these points.
  1125. % \begin{macro}{\@itempenalty}
  1126. %    This penalty is inserted between list items.
  1127. %    \begin{macrocode}
  1128. \@beginparpenalty -\@lowpenalty
  1129. \@endparpenalty   -\@lowpenalty
  1130. \@itempenalty     -\@lowpenalty
  1131. %    \end{macrocode}
  1132. % \end{macro}
  1133. % \end{macro}
  1134. % \end{macro}
  1135. % \begin{macro}{\@listI}
  1136. % \begin{macro}{\@listi}
  1137. % |\@listI| defines top level and |\@listi| values of
  1138. % |\leftmargin|, |\parsep|, |\topsep|, and |\itemsep|
  1139. %    \begin{macrocode}
  1140. \def\@listI{\setlength\leftmargin{\leftmargini}
  1141.             \setlength\parsep {0\p@}%
  1142.             \setlength\topsep {.4em}%
  1143.             \setlength\itemsep{.4em}}
  1144. \let\@listi\@listI
  1145. %    \end{macrocode}
  1146. %    We have to initialize these parameters.
  1147. %    \begin{macrocode}
  1148. \@listi
  1149. %    \end{macrocode}
  1150. % \end{macro}
  1151. % \end{macro}
  1152. % \begin{macro}{\@listii}
  1153. % \begin{macro}{\@listiii}
  1154. % \begin{macro}{\@listiv}
  1155. % \begin{macro}{\@listv}
  1156. % \begin{macro}{\@listvi}
  1157. %    Here are the same macros for the higher level lists.
  1158. %    \begin{macrocode}
  1159. \def\@listii {\setlength  \leftmargin{\leftmarginii}%
  1160.               \setlength  \labelwidth{\leftmarginii}%
  1161.               \addtolength\labelwidth{-\labelsep}}
  1162. \def\@listiii{\setlength  \leftmargin{\leftmarginiii}%
  1163.               \setlength  \labelwidth{\leftmarginiii}%
  1164.               \addtolength\labelwidth{-\labelsep}%
  1165.               \setlength  \topsep    {.2em}%
  1166.               \setlength  \itemsep   {\topsep}}
  1167. \def\@listiv {\setlength  \leftmargin{\leftmarginiv}%
  1168.               \setlength  \labelwidth{\leftmarginiv}%
  1169.               \addtolength\labelwidth{-\labelsep}}
  1170. \def\@listv  {\setlength  \leftmargin{\leftmarginv}%
  1171.               \setlength  \labelwidth{\leftmarginv}%
  1172.               \addtolength\labelwidth{-\labelsep}}
  1173. \def\@listvi {\setlength  \leftmargin{\leftmarginvi}%
  1174.               \setlength  \labelwidth{\leftmarginvi}%
  1175.               \addtolength\labelwidth{-\labelsep}}
  1176. %    \end{macrocode}
  1177. % \end{macro}
  1178. % \end{macro}
  1179. % \end{macro}
  1180. % \end{macro}
  1181. % \end{macro}
  1182. % \subsubsection{Enumerate}
  1183. %    The enumerate environment uses  four counters: \Lcount{enumi},
  1184. %    \Lcount{enumii}, \Lcount{enumiii} and \Lcount{enumiv}, where
  1185. %    \Lcount{enumN} controls the numbering of the Nth level
  1186. %    enumeration.
  1187. % \begin{macro}{\theenumi}
  1188. % \begin{macro}{\theenumii}
  1189. % \begin{macro}{\theenumiii}
  1190. % \begin{macro}{\theenumiv}
  1191. %    The counters are already defined in \file{latex.tex}, but their
  1192. %    representation is changed here.
  1193. %    \begin{macrocode}
  1194. \renewcommand\theenumi{\arabic{enumi}}
  1195. \renewcommand\theenumii{\alph{enumii}}
  1196. \renewcommand\theenumiii{\roman{enumiii}}
  1197. \renewcommand\theenumiv{\Alph{enumiv}}
  1198. %    \end{macrocode}
  1199. % \end{macro}
  1200. % \end{macro}
  1201. % \end{macro}
  1202. % \end{macro}
  1203. % \begin{macro}{\labelenumi}
  1204. % \begin{macro}{\labelenumii}
  1205. % \begin{macro}{\labelenumiii}
  1206. % \begin{macro}{\labelenumiv}
  1207. %    The commands |\labelenumi| ... |\labelenumiv| generate the label
  1208. %    for each item.
  1209. %    \begin{macrocode}
  1210. \newcommand\labelenumi{\theenumi.}
  1211. \newcommand\labelenumii{(\theenumii)}
  1212. \newcommand\labelenumiii{\theenumiii.}
  1213. \newcommand\labelenumiv{\theenumiv.}
  1214. %    \end{macrocode}
  1215. % \end{macro}
  1216. % \end{macro}
  1217. % \end{macro}
  1218. % \end{macro}
  1219. % \begin{macro}{\p@enumii}
  1220. % \begin{macro}{\p@enumiii}
  1221. % \begin{macro}{\p@enumiv}
  1222. %    The expansion of |\p@enumN||\theenumN| defines the output of a
  1223. %    |\ref| command when referencing an item of the Nth level of an
  1224. %    enumerated list.
  1225. %    \begin{macrocode}
  1226. \renewcommand\p@enumii{\theenumi}
  1227. \renewcommand\p@enumiii{\theenumi(\theenumii)}
  1228. \renewcommand\p@enumiv{\p@enumiii\theenumiii}
  1229. %    \end{macrocode}
  1230. % \end{macro}
  1231. % \end{macro}
  1232. % \end{macro}
  1233. % \subsubsection{Itemize}
  1234. % \begin{macro}{\labelitemi}
  1235. % \begin{macro}{\labelitemii}
  1236. % \changes{v1.2h}{1994/05/06}{Inserted \cmd\normalfont}
  1237. % \begin{macro}{\labelitemiii}
  1238. % \begin{macro}{\labelitemiv}
  1239. % Itemization is controlled by  |\labelitemi|,
  1240. % |\labelitemii|, |\labelitemiii|, and |\labelitemiv|, which define
  1241. % the labels of the various itemization levels: the symbols used are
  1242. % bullet, bold en-dash, asterisk and centered dot.
  1243. % \changes{v1.2n}{1994/07/11}{renamed \cs{labelitemiiii} to
  1244. %    \cs{labelitemiii}}
  1245. %    \begin{macrocode}
  1246. \newcommand\labelitemi{$\m@th\bullet$}
  1247. \newcommand\labelitemii{\normalfont\bfseries --}
  1248. \newcommand\labelitemiii{$\m@th\ast$}
  1249. \newcommand\labelitemiv{$\m@th\cdot$}
  1250. %    \end{macrocode}
  1251. % \end{macro}
  1252. % \end{macro}
  1253. % \end{macro}
  1254. % \end{macro}
  1255. % \subsubsection{Description}
  1256. % \begin{environment}{description}
  1257. %    The description environment is defined here -- while the itemize
  1258. %    and enumerate environments are defined in \file{latex.tex}.
  1259. %    \begin{macrocode}
  1260. \newenvironment{description}
  1261.                {\list{}{\labelwidth\z@ \itemindent-\leftmargin
  1262.                         \let\makelabel\descriptionlabel}}
  1263.                {\endlist}
  1264. %    \end{macrocode}
  1265. % \end{environment}
  1266. % \begin{macro}{\descriptionlabel}
  1267. %    To change the formatting of the label, you must redefine
  1268. %    |\descriptionlabel|.
  1269. %    \begin{macrocode}
  1270. \newcommand\descriptionlabel[1]{\hspace\labelsep
  1271.                                 \normalfont\bfseries #1}
  1272. %    \end{macrocode}
  1273. % \end{macro}
  1274. % \subsection{Defining new environments}
  1275. % \subsubsection{Verse}
  1276. % \begin{environment}{verse}
  1277. %   The verse environment is defined by making clever use of the
  1278. %   list environment's parameters.  The user types |\\| to end a line.
  1279. %   This is implemented by |\let|'ing |\\| equal |\@centercr|.
  1280. %    \begin{macrocode}
  1281. \newenvironment{verse}
  1282.                {\let\\=\@centercr
  1283.                 \list{}{\setlength\itemsep{\z@}%
  1284.                         \setlength\itemindent{-15\p@}%
  1285.                         \setlength\listparindent{\itemindent}%
  1286.                         \setlength\rightmargin{\leftmargin}%
  1287.                         \addtolength\leftmargin{15\p@}}%
  1288.                 \item[]}
  1289.                {\endlist}
  1290. %    \end{macrocode}
  1291. % \end{environment}
  1292. % \subsubsection{Quotation}
  1293. % \begin{environment}{quotation}
  1294. %   The quotation environment is also defined by making clever use of
  1295. %   the list environment's parameters. The lines in the environment
  1296. %   are set smaller than |\textwidth|. The first line of a paragraph
  1297. %   inside this environment is indented.
  1298. %    \begin{macrocode}
  1299. \newenvironment{quotation}
  1300.                {\list{}{\setlength\listparindent{1.5em}%
  1301.                         \setlength\itemindent{\listparindent}%
  1302.                         \setlength\rightmargin{\leftmargin}}%
  1303.                 \item[]}
  1304.                {\endlist}
  1305. %    \end{macrocode}
  1306. % \end{environment}
  1307. % \subsubsection{Quote}
  1308. % \begin{environment}{quote}
  1309. %   The quote environment is like the quotation environment except
  1310. %   that paragraphs are not indented.
  1311. %    \begin{macrocode}
  1312. \newenvironment{quote}
  1313.                {\list{}{\setlength\rightmargin{\leftmargin}}%
  1314.                 \item[]}
  1315.                {\endlist}
  1316. %    \end{macrocode}
  1317. % \end{environment}
  1318. % \subsubsection{Theorem}
  1319. %    This document class does not define it's own theorem environments,
  1320. %    the defaults, supplied by \file{latex.ltx} are available.
  1321. % \subsection{Setting parameters for existing environments}
  1322. % \subsubsection{Array and tabular}
  1323. % \begin{macro}{\arraycolsep}
  1324. %    The columns in an array environment are separated by
  1325. %    2|\arraycolsep|.
  1326. %    \begin{macrocode}
  1327. \setlength\arraycolsep{5\p@}
  1328. %    \end{macrocode}
  1329. % \end{macro}
  1330. % \begin{macro}{\tabcolsep}
  1331. %    The columns in an tabular environment are separated by
  1332. %    2|\tabcolsep|.
  1333. %    \begin{macrocode}
  1334. \setlength\tabcolsep{6\p@}
  1335. %    \end{macrocode}
  1336. % \end{macro}
  1337. % \begin{macro}{\arrayrulewidth}
  1338. %    The width of vertical rules in the array and tabular environments
  1339. %    is given by |\arrayrulewidth|.
  1340. %    \begin{macrocode}
  1341. \setlength\arrayrulewidth{.4\p@}
  1342. %    \end{macrocode}
  1343. % \end{macro}
  1344. % \begin{macro}{\doublerulesep}
  1345. %    The space between adjacent rules in the array and tabular
  1346. %    environments is given by |\doublerulesep|.
  1347. %    \begin{macrocode}
  1348. \setlength\doublerulesep{2\p@}
  1349. %    \end{macrocode}
  1350. % \end{macro}
  1351. % \subsubsection{Tabbing}
  1352. % \begin{macro}{\tabbingsep}
  1353. %    This controls the space that the |\'| command puts in. (See
  1354. %    \LaTeX{} manual for an explanation.)
  1355. %    \begin{macrocode}
  1356. \setlength\tabbingsep{\labelsep}
  1357. %    \end{macrocode}
  1358. % \end{macro}
  1359. % \subsubsection{Minipage}
  1360. % \begin{macro}{\@minipagerestore}
  1361. %    The macro |\@minipagerestore| is called upon entry to a minipage
  1362. %    environment to set up things that are to be handled differently
  1363. %    inside a minipage environment. In the current styles, it does
  1364. %    nothing.
  1365. % \end{macro}
  1366. % \begin{macro}{\@mpfootins}
  1367. %    Minipages have their own footnotes; |\skip||\@mpfootins| plays
  1368. %    same r\^ole for footnotes in a minipage as |\skip||\footins| does
  1369. %    for ordinary footnotes.
  1370. %    \begin{macrocode}
  1371. \skip\@mpfootins = \skip\footins
  1372. %    \end{macrocode}
  1373. % \end{macro}
  1374. % \subsubsection{Framed boxes}
  1375. % \begin{macro}{\fboxsep}
  1376. %    The space left by |\fbox| and |\framebox| between the box and the
  1377. %    text in it.
  1378. % \begin{macro}{\fboxrule}
  1379. %    The width of the rules in the box made by |\fbox| and |\framebox|.
  1380. %    \begin{macrocode}
  1381. \setlength\fboxsep{3\p@}
  1382. \setlength\fboxrule{.4\p@}
  1383. %    \end{macrocode}
  1384. % \end{macro}
  1385. % \end{macro}
  1386. % \subsubsection{Equation and eqnarray}
  1387. % \begin{macro}{\theequation}
  1388. %    The equation counter will be typeset using arabic numbers.
  1389. %    \begin{macrocode}
  1390. \renewcommand\theequation{\arabic{equation}}
  1391. %    \end{macrocode}
  1392. % \end{macro}
  1393. % \begin{macro}{\jot}
  1394. %    |\jot| is the extra space added between lines of an eqnarray
  1395. %    environment. The default value is used.
  1396. %    \begin{macrocode}
  1397. % \setlength\jot{3pt}
  1398. %    \end{macrocode}
  1399. % \end{macro}
  1400. % \begin{macro}{\@eqnnum}
  1401. %    The macro |\@eqnnum| defines how equation numbers are to appear in
  1402. %    equations. Again the default is used.
  1403. %    \begin{macrocode}
  1404. % \def\@eqnnum{(\theequation)}
  1405. %    \end{macrocode}
  1406. % \end{macro}
  1407. % \subsection{Font changing}
  1408. %    Here we supply the declarative font changing commands that were
  1409. %    common in \LaTeX\ version 2.09 and earlier. These commands work
  1410. %    in text mode \emph{and} in math mode. They are provided for
  1411. %    compatibility, but one should start using the |\text...| and
  1412. %    |\math...| commands instead. These commands are redefined using
  1413. %    |\@renewfontswitch|, a command with three arguments: the user
  1414. %    command to be defined; \LaTeX\ commands to execute in text mode
  1415. %    and \LaTeX\ commands to execute in math mode.
  1416. %  \begin{macro}{\rm}
  1417. %  \begin{macro}{\tt}
  1418. %  \begin{macro}{\sf}
  1419. %    The commands to change the family.
  1420. % \changes{v1.0a}{1993/12/14}{Added compatibility mode support.}
  1421. % \changes{v1.1}{1993/12/18}{Changed \cs{@newfontswitch} to
  1422. %    \cs{@renewfontswitch}, removed switch.}
  1423. % \changes{v1.2d}{1994/04/14}{\cmd\@renewfontswitch has become
  1424. %    \cmd\DeclareOldFontCommand}
  1425. %    \begin{macrocode}
  1426. \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
  1427. \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
  1428. \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
  1429. %    \end{macrocode}
  1430. %  \end{macro}
  1431. %  \end{macro}
  1432. %  \end{macro}
  1433. %  \begin{macro}{\bf}
  1434. %    The command to change to the bold series. One should use
  1435. %    |\mdseries| to explicitly switch back to medium series.
  1436. % \changes{v1.0a}{1993/12/14}{Added compatibility mode support.}
  1437. % \changes{v1.1}{1993/12/18}{Changed \cs{@newfontswitch} to
  1438. %    \cs{@renewfontswitch}, removed switch.}
  1439. %    \begin{macrocode}
  1440. \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
  1441. %    \end{macrocode}
  1442. %  \end{macro}
  1443. %  \begin{macro}{\sl}
  1444. %  \begin{macro}{\it}
  1445. %  \begin{macro}{\sc}
  1446. %    And the commands to change the shape of the font. The slanted and
  1447. %    small caps shapes are not available by default as math alphabets,
  1448. %    so those changes do nothing in math mode. One should use
  1449. %    |\upshape| to explicitly change back to the upright shape.
  1450. % \changes{v1.0a}{1993/12/14}{Added compatibility mode support.}
  1451. % \changes{v1.1}{1993/12/18}{Changed \cs{@newfontswitch} to
  1452. %    \cs{@renewfontswitch}, removed switch.}
  1453. % \changes{v1.1b}{1993/12/20}{Added forgotten re.}
  1454. %    \begin{macrocode}
  1455. \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
  1456. \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\relax}
  1457. \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\relax}
  1458. %    \end{macrocode}
  1459. %  \end{macro}
  1460. %  \end{macro}
  1461. %  \end{macro}
  1462. % \begin{macro}{\cal}
  1463. % \changes{v1.0a}{1993/12/14}{Macro added}
  1464. % \begin{macro}{\mit}
  1465. % \changes{v1.0a}{1993/12/14}{Macro added}
  1466. %    The commands |\cal| and |\mit| should only be used in math mode,
  1467. %    outside math mode they have no effect. Currently the New Font
  1468. %    Selection Scheme defines these commands to generate warning
  1469. %    messages. Therefore we have to define them `by hand'.
  1470. % \changes{v1.2p}{1994/12/11}{Now define \cs{cal} and \cs{mit} using
  1471. %    \cs{DeclareRobustCommand*}}
  1472. %    \begin{macrocode}
  1473. \DeclareRobustCommand*{\cal}{\@fontswitch{\relax}{\mathcal}}
  1474. \DeclareRobustCommand*{\mit}{\@fontswitch{\relax}{\mathnormal}}
  1475. %    \end{macrocode}
  1476. %  \end{macro}
  1477. %  \end{macro}
  1478. % \subsection{Footnotes}
  1479. % \begin{macro}{\footnoterule}
  1480. %    Usually, footnotes are separated from the main body of the text
  1481. %    by a small rule. This rule is drawn by the macro |\footnoterule|.
  1482. %    We have to make sure that the rule takes no vertical space (see
  1483. %    \file{plain.tex}) so we compensate for the natural height of the
  1484. %    rule of 0.4pt by adding the right amount of vertical skip.
  1485. %    To prevent the rule from colliding with the footnote we first add
  1486. %    a little negative vertical skip, then we put the rule and make
  1487. %    sure we end up at the same point where we begun this operation.
  1488. %    \begin{macrocode}
  1489. \renewcommand\footnoterule{%
  1490.   \kern-\p@
  1491.   \hrule \@width .4\columnwidth
  1492.   \kern .6\p@}
  1493. %    \end{macrocode}
  1494. % \end{macro}
  1495. % \begin{macro}{\c@footnote}
  1496. %    A counter for footnotes.
  1497. %    \begin{macrocode}
  1498. % \newcounter{footnote}
  1499. %    \end{macrocode}
  1500. % \end{macro}
  1501. % \begin{macro}{\@makefntext}
  1502. % \changes{v1.2c}{1994/03/08}{Always call \cs{@makefnmark}.}
  1503. %    The footnote mechanism of \LaTeX{} calls the macro |\@makefntext|
  1504. %    to produce the actual footnote. The macro gets the text of the
  1505. %    footnote as its argument and should use |\@makefnmark| to produce
  1506. %    the mark of the footnote. The macro |\@makefntext| is called when
  1507. %    effectively inside a |\parbox| of width |\columnwidth| (i.e.,
  1508. %    with |\hsize| = |\columnwidth|).
  1509. %   An example of what can be achieved is given by the following piece
  1510. %   of \TeX\ code.
  1511. % \begin{verbatim}
  1512. %          \long\def\@makefntext#1{%
  1513. %             \@setpar{\@@par
  1514. %                      \@tempdima = \hsize
  1515. %                      \advance\@tempdima-10pt
  1516. %                      \parshape \@ne 10pt \@tempdima}%
  1517. %             \par
  1518. %             \parindent 1em\noindent
  1519. %             \hbox to \z@{\hss\@makefnmark}#1}
  1520. % \end{verbatim}
  1521. %    The effect of this definition is that all lines of the footnote
  1522. %    are indented by 10pt, while the first line of a new paragraph is
  1523. %    indented by 1em. To change these dimensions, just substitute the
  1524. %    desired value for `10pt' (in both places) or `1em'.  The mark is
  1525. %    flush right against the footnote.
  1526. %    In these document class we use a simpler macro, in which the
  1527. %    footnote text is set like an ordinary text paragraph, with no
  1528. %    indentation except on the first line of a paragraph, and the
  1529. %    first line of the footnote. Thus, all the macro must do is set
  1530. %    |\parindent| to the appropriate value for succeeding paragraphs
  1531. %    and put the proper indentation before the mark.
  1532. %    \begin{macrocode}
  1533. \long\def\@makefntext#1{%
  1534.     \noindent
  1535.     \hangindent 5\p@
  1536.     \hbox to5\p@{\hss\@makefnmark}#1}
  1537. %    \end{macrocode}
  1538. % \end{macro}
  1539. % \begin{macro}{\@makefnmark}
  1540. %    The footnote markers that are printed in the text to point to the
  1541. %    footnotes should be produced by the macro |\@makefnmark|. We use
  1542. %    the default definition for it.
  1543. %    \begin{macrocode}
  1544. %\def\@makefnmark{\hbox{$^{\@thefnmark}\m@th$}}
  1545. %    \end{macrocode}
  1546. % \end{macro}
  1547. % \subsection{Words}
  1548. % \begin{macro}{\ccname}
  1549. % \begin{macro}{\enclname}
  1550. % \begin{macro}{\pagename}
  1551. % \begin{macro}{\headtoname}
  1552. %     This document class is for documents prepared in the English
  1553. %     language. To prepare a version for another language, various
  1554. %     English words must be replaced.  All the English words that
  1555. %     require replacement are  defined below in command names.
  1556. %    \begin{macrocode}
  1557. \newcommand*{\ccname}{cc}
  1558. \newcommand*{\enclname}{encl}
  1559. \newcommand*{\pagename}{Page}
  1560. \newcommand*{\headtoname}{To}
  1561. %    \end{macrocode}
  1562. % \end{macro}
  1563. % \end{macro}
  1564. % \end{macro}
  1565. % \end{macro}
  1566. % \subsection{Date}
  1567. % \begin{macro}{\today}
  1568. %    This macro uses the \TeX\ primitives |\month|, |\day| and |\year|
  1569. %    to provide the date of the \LaTeX-run.
  1570. %    \begin{macrocode}
  1571. \newcommand*{\today}{\ifcase\month\or
  1572.   January\or February\or March\or April\or May\or June\or
  1573.   July\or August\or September\or October\or November\or December\fi
  1574.   \space\number\day, \number\year}
  1575. %    \end{macrocode}
  1576. % \end{macro}
  1577. % \subsection{Two column mode}
  1578. % \begin{macro}{\columnsep}
  1579. %    This gives the distance between two columns in two column mode.
  1580. %    \begin{macrocode}
  1581. \setlength\columnsep{10\p@}
  1582. %    \end{macrocode}
  1583. % \end{macro}
  1584. % \begin{macro}{\columnseprule}
  1585. %    This gives the width of the rule between two columns in two
  1586. %    column mode. We have no visible rule.
  1587. %    \begin{macrocode}
  1588. \setlength\columnseprule{0\p@}
  1589. %    \end{macrocode}
  1590. % \end{macro}
  1591. % \subsection{The page style}
  1592. %    We have \pstyle{plain} pages in this document class by
  1593. %    default. We use arabic page numbers.
  1594. %    \begin{macrocode}
  1595. \pagestyle{plain}
  1596. \pagenumbering{arabic}
  1597. %    \end{macrocode}
  1598. % \subsection{Single or double sided printing}
  1599. %    We don't try to make each page as long as all the others.
  1600. %    \begin{macrocode}
  1601. \raggedbottom
  1602. %    \end{macrocode}
  1603. % \begin{macro}{\@texttop}
  1604. %    The document class letter sets |\@texttop| to |\vskip| 0pt plus
  1605. %    .00006fil on the first page of a letter, which centers a short
  1606. %    letter on the page. This fil value may have to be changed for
  1607. %    other letterheads.  This setting has to be done after
  1608. %    |\raggedbottom| is executed, since the latter sets |\@texttop| to
  1609. %    |\relax|.
  1610. %    \begin{macrocode}
  1611. \def\@texttop{\ifnum\c@page=1\vskip \z@ plus.00006fil\relax\fi}
  1612. %    \end{macrocode}
  1613. % \end{macro}
  1614. %    We always start in one column mode.
  1615. %    \begin{macrocode}
  1616. \onecolumn
  1617. %</letter>
  1618. %    \end{macrocode}
  1619. % \Finale
  1620. \endinput
  1621.